package org.shiwen.week8.thursday;

public class Student {
    private String name;
    private Transport transport;

    public Student() {
    }
    public Student(String name, Transport transport) {
        this.name = name;
        this.transport = transport;
    }

    public void show(){
        System.out.println(name+"上学交通工具的信息");
        transport.showInfo();

    }
}
